import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;

public class Test07 {
    public static void main(String[] args) {
        ArrayList<String> list=new ArrayList<>();
        Collections.addAll(list,"张无忌,15","濯芷箬,14","张强,20","张三丰,100","张翠山,40","张良,35","王二麻子,37");
       Student[] arr= list.stream().map(Student::new).toArray(Student[]::new);
       System.out.println(Arrays.toString(arr));

    }
}
